hackerrank reverse a doubly linked list problem

welcome to shbcf.ru